package com.ruoyi.civil.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import com.ruoyi.civil.mapper.CivilEnginneeringCleaningMapper;
import com.ruoyi.civil.domain.CivilEnginneeringCleaning;
import com.ruoyi.civil.service.ICivilEnginneeringCleaningService;

/**
 * 清洁Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-11
 */
@Service
public class CivilEnginneeringCleaningServiceImpl implements ICivilEnginneeringCleaningService
{
    @Autowired
    private CivilEnginneeringCleaningMapper civilEnginneeringCleaningMapper;

    /**
     * 查询清洁
     *
     * @param tCleanId 清洁主键
     * @return 清洁
     */
    @Override
    public CivilEnginneeringCleaning selectCivilEnginneeringCleaningByTCleanId(Long tCleanId)
    {
        return civilEnginneeringCleaningMapper.selectCivilEnginneeringCleaningByTCleanId(tCleanId);
    }

    /**
     * 查询清洁列表
     *
     * @param civilEnginneeringCleaning 清洁
     * @return 清洁
     */
    @Override
    public List<CivilEnginneeringCleaning> selectCivilEnginneeringCleaningList(CivilEnginneeringCleaning civilEnginneeringCleaning)
    {
        return civilEnginneeringCleaningMapper.selectCivilEnginneeringCleaningList(civilEnginneeringCleaning);
    }

    /**
     * 新增清洁
     *
     * @param civilEnginneeringCleaning 清洁
     * @return 结果
     */
    @Override
    public int insertCivilEnginneeringCleaning(CivilEnginneeringCleaning civilEnginneeringCleaning)
    {
        return civilEnginneeringCleaningMapper.insertCivilEnginneeringCleaning(civilEnginneeringCleaning);
    }

    /**
     * 修改清洁
     *
     * @param civilEnginneeringCleaning 清洁
     * @return 结果
     */
    @Override
    public int updateCivilEnginneeringCleaning(CivilEnginneeringCleaning civilEnginneeringCleaning)
    {
        return civilEnginneeringCleaningMapper.updateCivilEnginneeringCleaning(civilEnginneeringCleaning);
    }

    /**
     * 批量删除清洁
     *
     * @param tCleanIds 需要删除的清洁主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringCleaningByTCleanIds(Long[] tCleanIds)
    {
        return civilEnginneeringCleaningMapper.deleteCivilEnginneeringCleaningByTCleanIds(tCleanIds);
    }

    /**
     * 删除清洁信息
     *
     * @param tCleanId 清洁主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringCleaningByTCleanId(Long tCleanId)
    {
        return civilEnginneeringCleaningMapper.deleteCivilEnginneeringCleaningByTCleanId(tCleanId);
    }
}
